{{#extends @community.html}}
{{:title}}Новые комменты{{/:title}}
{{:init}}
	{{!connect "master.css" media="all" charset="utf-8"}}
	{{!connect "content.css" media="all" charset="utf-8"}}

	{{!connect "screen/layout-standard.css" media="screen" charset="utf-8"}}
	{{!connect "screen/portal.css" media="screen" charset="utf-8"}}
	{{!connect "screen/footer.css" media="screen" charset="utf-8"}}
	{{!connect "screen/community-head.css" media="screen" charset="utf-8"}}

	{{!connect "screen/content-posts.css" media="screen" charset="utf-8"}}
	{{!connect "screen/content-posts-comments.css" media="screen" charset="utf-8"}}

	{{!connect "jquery.js" pos="top"}}

{{/:init}}

{{:title}}{{tmp.post.title}}{{/:title}}

{{:body}}
	<!-- ========================= Установки для работы js ============== -->
	<!-- для imageswitcher.js -->
	{{@html/config/imageswitcher.html}}
	<!-- ========================= Установки для работы js ============== -->

	{{@:community_head}}
	<div class="layout-standard content-posts">
		<div class="layout-c-right">
			{{createbtn}}
		</div>
		<div class="layout-c-main">
			<div class="contenthandler">
				<!-- BEGIN алерт -->
				{{!connect "jplugins/jquery.cookie.js"}}
				{{!connect "service/system.message.js"}}
				<div id="rh_alert" class="html-alert html-alert-main dn"><div class="bg1-"><div class="bg2-"><div class="bg3-">
					<a href="#"><img src="{{!static type='images' 'alert-close.gif'}}" alt="[×]" title="Закрыть сообщение" class="close-" /></a>
					<span id="rh_message" class="message-">{{rh.ui_message_cookie}}<!--
						Имя куки, хранящей системное сообщение.
						используется в service/SystemMessage.js --></span>
				</div></div></div></div>
				<!-- END алерт -->
				<div class="list-" id="itemslist">
					{{?tmp.post.is_deleted}}
					Запись удалена.
					{{?:}}
					{{@:blogitemblock *=tmp}}
					{{/?}}
				</div>
			</div>
		</div>
	</div>
{{/:body}}

{{:blogitemblock}}
<div class="item- js-post" id="i{{*post.oid}}">

	<!-- Постер -->
	{{?*platonicaid_author}}
		{{@:poster poster=*platonicaid_author}}
	{{?:}}
		{{@:poster poster=*poster}}
	{{/?}}

	<!-- Авторы -->
	{{?tmp.Authors}}
		Авторы: {{!for tmp.Authors as="author" do=@:author sep=",&nbsp;"}}
		{{:author}}
			{{?author.url}}
			<!-- registered -->
			<a href="{{author.url | safe}}" title="Профиль пользователя">{{author.fullname}}</a>
			{{?:author.do_create}}
			<!-- registered -->
			<a href="{{author.do_create.url | safe}}" title="{{author.do_create.title}}" style="color: gray">{{author.fullname}}</a>
			{{?:}}
			<!-- anonymous -->
			<span class="user-">{{author.fullname}}</span>
			{{/?}}
		{{/:author}}
	{{/?}}

	{{!doctype @html/doctypes/aloneitem/__DOCTYPE__.html *post.type}}
	{{@html/quest/doc_action.html:main q=quests doc_id=*post.oid}}

	<!-- блок комментов (добавьте во внешний тег class="js-post" и id="i{{post_oid}}") -->
	{{@html/comments/comments.html:main item=*}}
	{{?*post.edited_user_oid}}
	<br clear="left" />
	Исправлено {{*post.edited_dtime|date "%d %M %Y, в %H:%i"}}
	<a href="{{/}}{{*community.community_url}}/members/{{*post.edited_user_oid}}">{{*post.edited_user.fullname}}</a>
	{{/?}}
</div>
{{/:blogitemblock}}

<!-- Блок автора записи -->
{{:poster}}
<div class="author-">
	{{?poster.oid}}
		<!-- registered -->
	<a href="{{?!poster.url}}{{/}}{{community.url}}/members/{{poster.oid}}{{?:}}{{poster.url}}{{/?}}">
		{{?!poster.avatar_url}}
		<img src="{{?poster.avatar}}{{/}}{{poster.avatar | link_to 'imagestorage' 'sm1'}}{{?:}}{{images}}avatar-48x48.png{{/?}}" class="avatar-" />{{?:}}<img src="{{poster.avatar_url}}" class="avatar-" />{{/?}}
		</a>
	<a href="{{?!poster.url}}{{/}}{{community.url}}/members/{{poster.oid}}{{?:}}{{poster.url}}{{/?}}" class="name-">{{poster.name}}</a>
	{{?poster.status}}<div class="status-">{{poster.status}}</div>{{/?}}
	{{?:poster.url}}
	<a href="{{poster.url}}" class="name-">{{poster.name |or poster.url}}</a>
	{{?:}}
		<!-- anonumous -->
		<img src="{{images}}avatar-48x48.png" class="avatar-" />
		<div class="status-">Платонимус</div>
	{{/?}}
</div>
{{/:poster}}
